package com.caigou.service.impl;

import com.caigou.mapper.cms.AdContractSequenceMapper;
import com.caigou.service.AdContractSequenceService;
import com.caigou.util.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("adContractSequenceService")
public class AdContractSequenceServiceImpl implements AdContractSequenceService {

    @Resource
    private AdContractSequenceMapper adContractSequenceMapper;

    @Override
    public Result loadAdContractSequence() {
        return Result.success(adContractSequenceMapper.loadAdContractSequence());
    }

    @Override
    public void lockAdContractSequence() {
        adContractSequenceMapper.lockAdContractSequence();
    }

    @Override
    public int lockAdContractSequenceExits(Integer contractNumber) {
        return adContractSequenceMapper.lockAdContractSequenceExits(contractNumber);
    }

    @Override
    public void unLockAdContractSequence() {
        adContractSequenceMapper.unLockAdContractSequence();
    }

    @Override
    public void updateAdContractSequence() {
        adContractSequenceMapper.updateAdContractSequence();
    }
}
